// 商品首页
.commodity {
    width: 100%;
    height: calc(100vh);
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    flex-flow: column;

    :deep(.van-nav-bar .van-icon) {
        color: #1A1B1C !important;
    }

    :deep(.van-pull-refresh) {
        height: calc(100vh - 240px);
        overflow: scroll;
		background:#f6f8fa;
    }

    .commodity_classify {
        width: 100%;
        height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        margin-bottom: 15px;
        position: relative;

        .commodity_classify_item {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-width: 0;

            img {
                width: 10px;
                height: 6px;
                margin-left: 5px;
            }

            span {
                // flex: 0.7;
                min-width: 0;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                text-align: right;
            }
        }

        .commodity_classify_div {
            flex: 0.3;
            margin-left: 10px;

            img {
                width: 16px;
                height: 18px;
            }
        }
    }

    .wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;

        .wrapper_div {
            width: 315px;
            background-color: #fff;
            border-radius: 5px;
            position: relative;

            :deep(.van-field__control) {
                background: #F6FAFF !important;
            }

            ::placeholder {
                font-size: 14px;
                color: #B8BECA;
            }

            .title {
                font-weight: 500;
                font-size: 16px;
                color: #1A1B1C;
                width: 100%;
                text-align: center;
                margin: 30px 0 20px 0;
            }

            .van-image {
                width: 10px;
                height: 10px;
                position: absolute;
                right: 18px;
                top: 18px;
            }

            :deep(.van-form) {
                min-height: 265px;
            }

            .button {
                color: #FFFFFF;
                font-size: 14px;
                width: 285px;
                height: 44px;
                background: #0094FF;
                border-radius: 23px;
                margin: auto;
                display: flex;
                justify-content: center;
                margin-top: 10px;
            }
        }
    }
}

// 搜索框
.search {
    width: 100%;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;

    .search_left {
        flex: 1;
        height: 34px;
        background: #fff;
        border-radius: 16px;
        padding: 4px 4px 4px 15px;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .search_left_img {
            width: 14px;
            height: 14px;
            margin-right: 10px;
        }

        input {
            flex: 1;
            height: 14px;
            min-width: 0;
            border: none;
            font-size: 12px;
            margin-right: 5px;
        }

        .search_clear {
            padding: 3px 6px;

            .search_clear_img {
                width: 13px;
                height: 13px;
                vertical-align: top;
            }
        }

        .search_left_button {
            width: 54px;
            height: 26px;
            font-weight: 400;
            font-size: 10px;
            color: #FFFFFF;
        }
    }
}

// 搜索筛选弹框架子
.screenHome_bg {
    position: fixed;
    top: 145px;
    left: 0;
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: calc(100vh - 145px);
    z-index: 2;

    .screenHome {
        width: 100%;
        height: 50vh;
        box-sizing: border-box;
        background: #fff;
        display: flex;
        flex-flow: column;
        justify-content: space-between;

        .screenHome_slot {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 15px 15px 0;
            margin-bottom: 15px;
            box-sizing: border-box;
        }

        .buttons {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px 15px;
            box-sizing: border-box;

            .reset {
                width: 48%;
                height: 44px;
                border-radius: 23px;
                border: 1px solid #0094FF;
                text-align: center;
                line-height: 44px;
                font-weight: 400;
                font-size: 14px;
                color: #0094FF;
            }

            .submit {
                width: 48%;
                height: 44px;
                border-radius: 23px;
                background: #0094FF;
                text-align: center;
                line-height: 44px;
                font-weight: 400;
                font-size: 14px;
                color: #fff;
            }
        }
    }
}

// 筛选项目组件
.searchScreen {
    width: 100%;

    .searchScreen_one {
        .searchScreen_one_title {
            font-size: 14px;
            font-weight: 700;
            color: #1A1B1C;
            margin-bottom: 15px;
        }

        .searchScreen_one_radio {
            display: flex;
            flex-wrap: wrap;
            min-height: 50px;

            .searchScreen_one_radio_div {
                width: calc(100% / 4);
                height: 30px;
                padding: 0 5px;
                box-sizing: border-box;
                margin-bottom: 15px;

                .searchScreen_one_radio_item {
                    width: 100%;
                    height: 100%;
                    border-radius: 15px;
                    border: 1px solid #B8BECA;
                    text-align: center;
                    line-height: 30px;
                    font-weight: 400;
                    font-size: 14px;
                    color: #B8BECA;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }

                .searchScreen_one_radio_item_active {
                    background: #0094FF;
                    color: #fff;
                    border-color: #0094FF;
                }
            }
        }
    }

    .searchScreen_date {
        .searchScreen_date_title {
            font-size: 14px;
            font-weight: 700;
            color: #1A1B1C;
            margin-bottom: 15px;
        }

        .searchScreen_date_shelf {
            width: 100%;
            height: 34px;
            display: flex;
            position: relative;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            margin-bottom: 20px;

            .searchScreen_date_shelf_div {
                width: 159px;
                height: 34px;
                border-radius: 17px;
                border: 1px solid #B8BECA;
                position: relative;
                text-align: center;
                line-height: 34px;

                .menu_cions {
                    position: absolute;
                    width: 14px;
                    height: 14px;
                    top: 10px;
                    left: 15px;
                }

                .title {
                    font-weight: 400;
                    font-size: 14px;
                    color: #B8BECA;
                }
            }

            .separator {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }

    .loading {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(50vh - 69px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

// 首页列表样式
.commodity_list {
    display: flex;
    flex-flow: column;
    padding: 10px 15px;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 10px;

    .list_top {
        display: flex;
        align-items: center;

        .list_top_img {
            padding: 5px;
            position: relative;
            margin-right: 5px;

            .list_top_img_tag {
                width: 50px;
                height: 20px;
                line-height: 20px;
                font-weight: 400;
                font-size: 12px;
                color: #FFFFFF;
                text-align: center;
                background: #0094FF;
                border-radius: 2px 0px 2px 0px;
                position: absolute;
                top: 5px;
                left: 5px;
            }
        }

        .list_top_right {
            flex: 1;
            min-width: 0;
            display: flex;
            min-width: 0;
            flex-flow: column;

            .list_top_right_title {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 15px;

                .title {
                    flex: 1;
                    min-width: 0;
                    margin-right: 15px;
                    font-weight: 400;
                    font-size: 14px;
                    color: #1A1B1C;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .tag {
                    width: 67px;
                    height: 26px;
                    line-height: 26px;
                    text-align: center;
                    border-radius: 2px;
                    font-weight: 400;
                    font-size: 14px;
                }

                .tag_lan {
                    background: #EBF4FF;
                    color: #0094FF;
                }

                .tag_red {
                    background: #FDE7E7;
                    color: #FC2540;
                }

                .tag_lv {
                    background: #E7FDEE;
                    color: #19D11B;
                }
            }

            .list_top_right_introduce {
                width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-weight: 400;
                font-size: 12px;
                color: #B8BECA;
                margin-bottom: 15px;
            }

            .list_top_right_money {
                display: flex;
                align-items: center;
                justify-content: space-between;

                .money_left {
                    font-weight: 500;
                    font-size: 14px;
                    color: #FC2540;

                    &>span:first-child {
                        margin-right: 10px;
                    }
                }

                .money_right {
                    font-weight: 400;
                    font-size: 12px;
                    color: #0094FF;
                }
            }
        }
    }

    .list_text {
        display: flex;
        flex-flow: column;

        .list_text_p {
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .list_text_p_left {
                font-weight: 400;
                font-size: 14px;
                color: #1A1B1C;
            }

            .list_text_p_right {
                font-weight: 400;
                font-size: 14px;
                color: #B8BECA;
                flex: 0.8;
                text-align: right;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .list_text_p_number {
                font-weight: 500;
                font-size: 14px;
                color: #0094FF;
            }

            .list_text_p_yard {
                font-weight: 500;
                font-size: 14px;
                color: #19D11B;
            }
        }
    }

    .list_text_cy {
        display: flex;

        .list_text_p_cy {
            margin-top: 10px;
            display: flex;
            align-items: center;
            width: 63%;
        }

        .list_text_p_cys {
            margin-top: 10px;
            display: flex;
            align-items: center;
            width: 37%;
            justify-content: flex-end;
        }

        .list_text_p_left_cy {
            font-weight: 400;
            font-size: 14px;
            color: #B8BECA;
        }

        .list_text_p_right_cy {
            font-weight: 400;
            font-size: 14px;
            color: #B8BECA;
            flex: 0.8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .list_text_p_number_cy {
            font-weight: 500;
            font-size: 14px;
            color: #0094FF;
        }
    }
}